// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
wait 0 
wait 0 
thread 'SPC'

Model.Load(#MP5LNG)
            038B: load_requested_models  


while true 
    repeat
    wait 0 
    until if Player.Defined(0)
    Actor.StorePos($PLAYER_ACTOR, 6@, 7@, 8@)                                                                  
    if 0AE1: 1@ = random_actor_near_point 6@ 7@ 8@ in_radius 1000.0 find_next 1 pass_deads 0 //IF and SET      
    jf continue                                                                                                
    IF NOT 1@ == -1                                                                                            
    jf continue                                                                                                
    IF 056D:   actor 1@ defined                                                                                
    jf continue                                                                                                
    if not Actor.Dead(1@)                                                                                      
    jf continue                                                                                                
    if 02D8:   actor 1@ current_weapon == 0                                                           
    then                                                                                                  
        Actor.WeaponAccuracy(1@) = 70                                                                     
        07DD: set_actor 1@ attack_rate 100 // previously known as temper_to                               
        Actor.GiveWeaponAndAmmo(1@, MP5, 9999)                                                            
    end                                                                                                   
        0393: actor 1@ perform_animation "RIFLE_CROUCHFIRE" at 5.9 times_normal_rate                      
        0393: actor 1@ perform_animation "RIFLE_CROUCHLOAD" at 5.9 times_normal_rate                      
        0393: actor 1@ perform_animation "RIFLE_FIRE" at 5.9 times_normal_rate                            
        0393: actor 1@ perform_animation "RIFLE_FIRE_POOR" at 5.9 times_normal_rate                       
        0393: actor 1@ perform_animation "RIFLE_LOAD" at 5.9 times_normal_rate                            
        0393: actor 1@ perform_animation "SWAT_RUN" at 7.9 times_normal_rate                              
        0393: actor 1@ perform_animation "UZI_CROUCHFIRE" at 5.9 times_normal_rate                        
        0393: actor 1@ perform_animation "UZI_CROUCHRELOAD" at 5.9 times_normal_rate                      
        0393: actor 1@ perform_animation "UZI_FIRE" at 5.9 times_normal_rate                              
        0393: actor 1@ perform_animation "UZI_FIRE_POOR" at 5.9 times_normal_rate                         
        0393: actor 1@ perform_animation "UZI_RELOAD" at 5.9 times_normal_rate                            
        0393: actor 1@ perform_animation "WALK_CIVI" at 5.9 times_normal_rate                             
                                                                                                       
end